using System;

namespace Linq2Crm.ObjectModel.Attributes
{
	[AttributeUsage(AttributeTargets.Class)]
	public sealed class CrmEntityMappingAttribute : Attribute
	{
		public CrmEntityMappingAttribute()
		{			
		}

		public CrmEntityMappingAttribute(string entityName, string nameField, string idField):this()
		{
			this.EntitySchemaName = entityName;
			this.NameField = nameField;
			IDField = idField;
		}

		public string IDField { get; set; }
		public string NameField { get; set; }
		public string EntitySchemaName { get; set; }
		public string[] IgnoreProperties { get; set; }
	}
}